﻿<%@ Page Language="F#" AutoEventWireup="true"  CodeFile="Lectures.aspx.fs" Inherits="Demos.LectureWeb.Lectures" %>
<%@ Register Src="~/InsertLecture.ascx" TagName="InsertLecture" TagPrefix="lc" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
  <title>Lectures</title>
  <link rel="stylesheet" type="text/css" href="lectures.css" />
</head>
<body>
  <form runat="server">
  <div>

    <h1>Lectures</h1>

    <div id="bar">
      <strong>Select the date</strong>
      <fwc:Calendar CssClass="meetCal" id="calDate" runat="server" /><br /><br />
      <p>Current time is: <fwc:ClockControl id="clock" runat="Server" /></p>
      <strong>Actions</strong>
      <ul>
        <li><fwc:HyperLink id="lnkArrange" Text="Arrange a new lecture" runat="server" /></li>
        <li><fwc:HyperLink id="lnkPermanent" Text="Permanent link" runat="server" /></li>
      </ul>
      <fwc:Image id="imgLoading" runat="server" />
    </div>

    <div id="main">
      <fwc:Label id="lblInfo" runat="server" /><br />
      <strong>Navigation:</strong>&#160;&#160;
      <fwc:Hyperlink id="btnPrevPage" runat="server" text="&lt; previous page" /> | 
      <fwc:Hyperlink id="btnNextPage" runat="server" text="next page &gt;" />
      
      <br /><br />
      
      <ul>
      <fwc:Repeater id="listMeetings" runat="server">
        <ItemTemplate>
          <li>
            <h2><%# Container.RecdGet("Title") %></h2>
            <p><%# Container.RecdGet("Description") %></p>
            <p>
              <strong>Starting time: </strong><%# Container.RecdGetFormat("DateAndTime", "hh:mm") %>
              <strong>Place: </strong><%# Container.RecdGet("Place") %><br />
              <strong>Organized by: </strong><%# Container.RecdGet("University") %>, <%# Container.RecdGet("Country") %></p>
          </li>
        </ItemTemplate>
      </fwc:Repeater>
      </ul>
    </div>
    
    <fwc:floatwindow runat="server" id="winInsert" cssclass="wininsert">
      <lc:InsertLecture runat="server" />
    </fwc:floatwindow>
    
    <div id="foot">
    </div>    
    
  </div>
  </form>
</body>
</html>
